﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BYFW.Model.Authorization
{
    /// <summary>
    /// 权限管理系统中的操作类；
    /// 开发过程中不断添加数据库记录的静态表
    /// 添加到表时注意code字段与常量一致
    /// </summary>
    public class Operation : BOL.BaseConfigEntity
    {
        public Operation()
        {
            m_tableName = "auth_operation";
            m_tblCacheManager.IsEnable = true;
            m_hasCode = true;
            m_hasName = true;
            m_hasComment = true;
        }

        /// <summary>
        /// 浏览操作
        /// </summary>
        public const string C_View = "view";
        /// <summary>
        /// 添加操作
        /// </summary>
        public const string C_Add = "add";
        /// <summary>
        /// 更新操作
        /// </summary>
        public const string C_Update = "update";
        /// <summary>
        /// 删除操作
        /// </summary>
        public const string C_Delete = "delete";
    }
}
